<!--
  @author duanzuocai
  @since 2018/10/23 15:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<body>

<div class="layui-fluid">

    <div class="layui-card">

        <div class="layui-card-body">

            <!--表单样式统一为layui-form(必需样式)，lay-filter属性统一定义为zmn-form-->
            <form method="POST" action="" class="layui-form" lay-filter="zmn-form">

                <div style="margin-left: -60px">
                    <div class="layui-form-item">
                        <label class="layui-form-label">默认系数：</label>
                        <label class="layui-form-label" style="margin-left: -56px">C默认系数：</label>
                        <div class="layui-input-inline" style="width:50px;">
                            <input style="width: 50px;text-align: right" type="text" name="outRatio" th:value="${cityRatioC == null ? '' : cityRatioC.ratio}" autocomplete="off" class="layui-input"/>
                        </div>
                        <label class="layui-form-label" style="width: 80px;margin-left: -10px">F默认系数：</label>
                        <div class="layui-input-inline" style="width:50px;">
                            <input style="width: 50px;text-align: right" type="text" name="inRatio" th:value="${cityRatioF == null ? '' : cityRatioF.ratio}" autocomplete="off" class="layui-input"/>
                        </div>
                        <label class="layui-form-label" style="width: 80px;margin-left: -10px">B默认系数：</label>
                        <div class="layui-input-inline" style="width:50px;">
                            <input style="width: 50px;text-align: right" type="text" name="projectRatio" th:value="${cityRatioB == null ? '' : cityRatioB.ratio}" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <label class="layui-form-label" style="width: auto;margin-left: -39px">计价器3.0系数：</label>
                        <div class="layui-input-inline" style="width:50px;">
                            <input style="width: 50px;text-align: right" type="text" name="meterRatio" th:value="${cityRatioM == null ? '' : cityRatioM.ratio}" autocomplete="off" class="layui-input"/>
                        </div>
                        <label style="color: #9F9F9F;">系数值范围 0.6~3.0，最多两位小数；不填写表示不设置 </label>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">生效日期：</label>
                        <div class="layui-input-inline">
                            <input type="text" id="effectiveDate" name="effectiveDate" placeholder="yyyy-MM-dd" class="layui-input"
                                   autocomplete="off" readonly/>
                        </div>
                        <div class="layui-input-inline">
                            <!--                            <span class="layui-form-mid layui-word-aux">请仔细选择：新增渠道产品后，不可修改使用渠道</span>-->
                            <label style="color: #9F9F9F;width: 400px">生效日期选择后，配置的数据将在该日期的0点生效，不填则默认次日0：00生效 </label>
                        </div>
                    </div>
                </div>

                <div class="layui-split">&nbsp;</div>
                <div class="layui-split">&nbsp;</div>
                <div class="layui-split">&nbsp;</div>
                <div class="layui-split">&nbsp;</div>
                <div class="layui-split">&nbsp;</div>
                <div class="layui-split">&nbsp;</div>
                <div class="layui-split">&nbsp;</div>

                <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
                <div class="layui-form-item submit">
                    <div style="text-align: center">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                        <button class="layui-btn layui-btn-primary" id="cancel">取消</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
</body>
</html>

<script type="text/javascript" th:inline="javascript">
    var json = {
        priceType: [[${priceType}]]
    };
    layui.config({
        base: "/static/lay/",
        version:20200309
    }).extend({
        index: "lib/index",
        city_batch_price_ratio_edit: "product/citypriceratio/batch/zmn.plat.citypriceratio.citybatch.edit",
    }).use(['index', 'city_batch_price_ratio_edit']);

</script>